<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="./common/taglib.jsp"%>
<c:import url="./common/searchHead.jsp">
	<c:param name="title" value="${model.result.keyword}_小书房"></c:param>
</c:import>
	<div class="crumb-nav wrapper page-width">
		<span class="cur-pos">当前位置：</span><a href="${ctx}/novel/home.html?cid=${model.params.cid}&cid=${model.params.cid}">首页</a><s>&gt;</s>搜索“${model.result.keyword}”结果
	</div>
	<div class="bookwrapper clearfix">
		<a name="maomao"></a>
		<div class="content clearfix">
			<div class="data-list" id="data_list">
				<div class="titlebar clearfix">
					<span class="titlebar-desc">共有 <span class="highlight">${model.result.totalNum}</span>
						记录</span>
				</div>
				<dl class="filters" id="filters">
					<dd style="border: 0; margin: 0; height: 0; padding: 0;">
						<span class="s1">◆</span><span class="s2">◆</span>
					</dd>
				</dl>

				<c:forEach items="${model.result.novelList}" var="novel">
					<span class="list-item""=""> <a
					class="poster history-cookie"
					href="${ctx}/novel/introduction.html?novelId=${novel.id}&cid=${model.params.cid}" title="${novel.name}"
					> <img
							src="${imgctx}/icon/${novel.icon}"
							title="${novel.name}" height="150" width="120"> <span
						class="status-bar"></span> <span class="status-text">
							<c:if test="${novel.status==0}">连载中</c:if>
							<c:if test="${novel.status==1}">已完结</c:if>
						</span> </a>

					<div class="book-info">
						<h3>
							<a href="${ctx}/novel/introduction.html?novelId=${novel.id}&cid=${model.params.cid}"
								class="title-link history-cookie" title="${novel.name}" >${novel.name}</a>
						</h3>
						<dl>
							<dt class="item-key">
								作者：
							</dt>
							<dd class="item-value">
								<!--<a href="/search/author-tiancantudou20e0" class="author-link" >天蚕土豆</a>-->
								<span class="author-link">${novel.author}</span>
							</dd>
							<dd class="hr"></dd>
							<dt class="item-key">
								最新章节：
							</dt>
							<dd class="item-value">
								${novel.latestChapterName}
							</dd>
							<dd class="hr"></dd>
							<dt class="item-key book-desc">
								简介：
							</dt>
							<dd class="item-value book-desc">
								${novel.introduction}
							</dd>
							<dd class="hr"></dd>
						</dl>
					</div> </span>
									
				</c:forEach>


			</div>

		</div>
		<div class="sidebar clearfix">
			<ul class="recommends">
				<li class="recommend-type">
					<h2 class="recommend-frees-title">
						热门推荐
					</h2>

					<ul>
						<c:forEach items="${model.result.hotestChartList}" var="chart" varStatus="status">
							<c:if test="${status.count<=3}">
								<li class="recommend-item">
									<span class="recommend-item-index">${status.count}</span><span
									class="recommend-item-type"> [${chart.categoryName}] </span><a
									href="${ctx}/novel/introduction.html?novelId=${chart.id}&cid=${model.params.cid}" title="${chart.name}"
									 class="ends">${chart.name}</a>
								</li>
							</c:if>
							<c:if test="${status.count>3}">
								<li class="recommend-item">
									<span class="recommend-item-index top3">${status.count}</span><span
									class="recommend-item-type"> [${chart.categoryName}] </span><a
									href="${ctx}/novel/introduction.html?novelId=${chart.id}&cid=${model.params.cid}" title="${chart.name}"
									 class="ends">${chart.name}</a>
								</li>
							</c:if>
						</c:forEach>
					</ul>
				</li>
				<li class="recommend-type">
					<h2 class="recommend-ends-title">最新更新</h2>

					<ul>
						<c:forEach items="${model.result.newestChartList}" var="chart" varStatus="status">
							<c:if test="${status.count<=3}">
								<li class="recommend-item">
									<span class="recommend-item-index">${status.count}</span><span
									class="recommend-item-type"> [${chart.categoryName}] </span><a
									href="${ctx}/novel/introduction.html?novelId=${chart.id}&cid=${model.params.cid}" title="${chart.name}"
									 class="ends">${chart.name}</a>
								</li>
							</c:if>
							<c:if test="${status.count>3}">
								<li class="recommend-item">
									<span class="recommend-item-index top3">${status.count}</span><span
									class="recommend-item-type"> [${chart.categoryName}] </span><a
									href="${ctx}/novel/introduction.html?novelId=${chart.id}&cid=${model.params.cid}" title="${chart.name}"
									 class="ends">${chart.name}</a>
								</li>
							</c:if>
						</c:forEach>
					</ul>
				</li>
			</ul>
		</div>
		<div class="clear"></div>
	</div>
	<c:import url="./common/foot.jsp">
			<c:param name="title" value="novel"></c:param>
		</c:import>
</body>
<script type="text/javascript">
	function skip(){
	    var pageNum = document.getElementById("pageNum").value;
	    var categoryId = document.getElementById("categoryId").value;
	    
		window.open("${ctx}/novel/list.html?page="+pageNum+"&ct="+categoryId, "_self");
	}
</script>
</html>